package com.jinmdz.fmis.api.api.model.farewell;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 告别厅时间请求数据
 *
 * @author LiCongLu
 * @date 2020-02-16 12:19
 */
@ApiModel(value = "告别厅时间请求数据", description = "告别厅时间请求数据")
public class FarewellHallDateData extends BaseBean {
    /**
     * 告别厅类型编码
     */
    @AnValidate(name = "告别厅类型编码", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "告别厅类型编码", name = "hallTypeCode", position = 1)
    private Integer hallTypeCode;

    /**
     * 预约入厅时间
     */
    @AnValidate(name = "预约入厅时间", required = true)
    @ApiModelProperty(value = "预约入厅时间", name = "appointmentInTime", example = "2020-02-15 14:32", position = 2)
    @JsonFormat(pattern = yyyy_MM_dd_HH_mm)
    private Date appointmentInTime;

    /**
     * 预约出厅时间
     */
    @AnValidate(name = "预约出厅时间")
    @ApiModelProperty(value = "预约出厅时间", name = "appointmentOutTime", example = "2020-02-15 14:32", position = 3)
    @JsonFormat(pattern = yyyy_MM_dd_HH_mm)
    private Date appointmentOutTime;

    public Integer getHallTypeCode() {
        return hallTypeCode;
    }

    public FarewellHallDateData setHallTypeCode(Integer hallTypeCode) {
        this.hallTypeCode = hallTypeCode;
        return this;
    }

    public Date getAppointmentInTime() {
        return appointmentInTime;
    }

    public FarewellHallDateData setAppointmentInTime(Date appointmentInTime) {
        this.appointmentInTime = appointmentInTime;
        return this;
    }

    public Date getAppointmentOutTime() {
        return appointmentOutTime;
    }

    public FarewellHallDateData setAppointmentOutTime(Date appointmentOutTime) {
        this.appointmentOutTime = appointmentOutTime;
        return this;
    }
}
